﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

//枪口火花，动画完成后自动清理gameobject
public class BoomController : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    //动画播放完成后删除自身
    public void afterAnimation()
    {
        Destroy(gameObject);
    }
}
